package vwg.na.vwm.rh.motorsdk.modelo.procesos.daoimpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import vwg.na.vwm.rh.motorsdk.modelo.procesos.dao.EssCatCompaniaDAO;
import vwg.na.vwm.rh.motorsdk.modelo.procesos.entidadesgrales.EssCatCompania;
import vwg.na.vwm.rh.rhmotor.modelo.dao.GenericDAO;

/**
 * @author dzmncvg
 * 
 */
@Repository
public class EssCatCompaniaDAOImpl extends GenericDAO<EssCatCompania> implements
		EssCatCompaniaDAO {

	@Override
	@Transactional(readOnly = true, propagation = Propagation.REQUIRED)
	public EssCatCompania findById(Integer essCatCompaniaId) {
		return getHibernateTemplate().get(EssCatCompania.class, essCatCompaniaId);
	}

}
